home *** CD-ROM | disk | FTP | other *** search
/ Carousel / CAROUSEL.cdr / mactosh / util / simulare.sit / Simula 4.07 Reference / card_62896.txt < prev    next >
Text File  |  1989-05-02  |  2KB  |  92 lines

  1. -- card: 62896 from stack: in.07 Reference
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 13647
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: A004
  11. -- rect: left=12 top=292 right=314 bottom=111
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Classes
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   go to card id 39217
  23. end mouseUp
  24.  
  25.  
  26.  
  27.  
  28. -- part 2 (field)
  29. -- low flags: 00
  30. -- high flags: 0002
  31. -- rect: left=356 top=172 right=295 bottom=470
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 0 / 0
  34. -- text alignment: 0
  35. -- font id: 3
  36. -- text size: 10
  37. -- style flags: 0
  38. -- line height: 13
  39. -- part name: 
  40.  
  41.  
  42. -- part 3 (button)
  43. -- low flags: 00
  44. -- high flags: A004
  45. -- rect: left=354 top=135 right=157 bottom=467
  46. -- title width / last selected line: 0
  47. -- icon id / first selected line: 0 / 0
  48. -- text alignment: 1
  49. -- font id: 0
  50. -- text size: 12
  51. -- style flags: 0
  52. -- line height: 16
  53. -- part name: Window Mgr
  54. ----- HyperTalk script -----
  55. on mouseUp
  56.   go to card id 63099
  57. end mouseUp
  58.  
  59.  
  60.  
  61.  
  62. -- part contents for background part 2
  63. ----- text -----
  64. Process manager
  65.  
  66. -- part contents for background part 1
  67. ----- text -----
  68. The class macProcessMgr will get raw events from the macEventMgr and distribute them to the processes. The scheduling is done on the basis of what kind of event it is, which window is active and which window is hit by a "mouse down" event. The code in this class emboddies much of the "feel" of a macintosh application.
  69.      Operations:
  70. ΓÇó Run - makes the process manager take over control.
  71. ΓÇó Stop - the process manager releases control when the currently 
  72.               active process terminates or calls waitnextevent.
  73. ΓÇó RegisterProcess(aP,aW) - register the macProcess "aP" to 
  74.               recieve the events concerning the macWindow "aW".
  75. ΓÇó RegisterMenuProcess - register a process to take care of
  76.               menu selection.
  77.  
  78.      Attributes:
  79. ΓÇó EventMgr - an object of class macEventMgr.
  80.  
  81.  
  82. -- part contents for card part 2
  83. ----- text -----
  84. macWindowMgr
  85. class macProcessMgr;
  86.  
  87. run
  88. stop
  89. kill
  90. registerProcess
  91. registerMenuProcess
  92.